﻿using System.Drawing;

namespace area
{
    class Program
    {
        static void Main(string[] args)
        {
            Cube cube = new Cube(10);
            Triangle triangle = new Triangle(6,6,6);
            Retangle rectangle = new Retangle(10, 9);
            cube.sayType();
            Console.WriteLine(cube.getArea());
            triangle.sayType();
            Console.WriteLine(triangle.getArea());
            rectangle.sayType();
            Console.WriteLine(rectangle.getArea());
        }
    }
}


